<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>3-class</title>
</head>
<body>
  <script>
    class Drag {
      constructor(name) { // 构造函数
        this.name = name
      }
      sayName() {
        console.log(this.name)
      }
    }
    let drag = new Drag('kkb')
    drag.sayName()

    let arr = new Array(1,2,3)
    console.log(arr)
  </script>
</body>
</html>